package com.sunfeng.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author sunfeng   服务降级  既可以放在客户端，也可以放在服务端。一般而言是放在客户端进行服务降级的
 * @date 2021/04/01 16:37
 * @EnableHystrix
 **/
@SpringBootApplication
@EnableFeignClients  // 开启Feign client
@EnableHystrix
public class OrderHystrixMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderHystrixMain80.class, args);
    }
}
